/* 以my-animation-开头的class */
[class*=my-animation-] {
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-fill-mode: both;
}

.text-marquee {
    white-space: nowrap; /* 禁止文字换行 */
    overflow: hidden; /* 隐藏超过容器宽度的部分 */
    animation: marquee 8s linear infinite; /* 应用走马灯动画 */
}

@keyframes marquee {
    0% {
        transform: translateX(0); /* 初始位置 */
    }
    50% {
        transform: translateX(100%); /* 移动到左侧 */
        right: 100%;
    }
    100% {
        transform: translateX(0); /* 移动到左侧 */
    }
}
.my-animation-slide-top {
    animation-name: slide-top
}

.my-animation-slide-bottom {
    animation-name: slide-bottom
}

.my-animation-hideToShow {
    animation-name: hideToShow
}
/* 渐变 */
@keyframes jianBian {
    to {
        background-position: -2000rem;
    }
}
@keyframes imgScale {
    0% {
        transform: scale(0.8, 0.8);
    }

    70% {
        transform: scale(1.3, 1.3);
    }

    100% {
        transform: scale(0.8, 0.8);
    }
}
/* 上移 */
@keyframes slide-top {
    0% {
        opacity: 0;
        transform: translateY(-20%)
    }
    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

/* 下移 */
@keyframes slide-bottom {
    0% {
        opacity: 0;
        transform: translateY(20%)
    }
    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

/* 首图动画：下移 */
@keyframes header-effect {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 旋转 */
@keyframes rotate {
    0% {
        opacity: 1;
        transform: rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: rotate(360deg);
    }
}

/* 显示 */
@keyframes hideToShow {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
@keyframes fadeShow {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 0.5;
    }
}
/* 下移 */
@keyframes my-shake {
    0% {
        opacity: 1;
        transform: translateY(0px);
    }

    30% {
        opacity: 0.5;
        transform: translateY(25px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

/* 上移 */
@keyframes scatter {
    0% {
        top: 0;
    }

    50% {
        top: -15px;
    }

    100% {
        top: 0;
    }
}
.skeleton::before {
    content: "";
    position: absolute;
    top: 0;
    left: -200px;
    width: 200px;
    transform: skewX(-30deg);
    height: 100%;
    background: linear-gradient(to right, transparent 0%, #e1e1e1 50%, transparent 100%);
    animation: skeleton-loading 1s linear infinite;
}
.hoverOpa{
    opacity: .3;
    transition: .3s;
}
.hoverOpa:hover{
    opacity: 1 !important;
}
@keyframes colorful {
    0% {
      background-position: 0 0;
    }
    100% {
      background-position: 100% 0;
    }
}
@keyframes skeleton-loading {
    from {
        left: -200px;
    }
    to {
        left: 100%;
    }
}
/* 放大 */
@keyframes scale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* 背景位置移动 */
@keyframes gradientBG {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

/* 阴影变化 */
@keyframes weiYanShadowFlashing {
    0% {
        box-shadow: none;
    }

    50% {
        box-shadow: 0 0 15px var(--red);
    }

    100% {
        box-shadow: none;
    }
}

/* 有小变大 */
@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale3d(.3, .3, .3);
    }

    50% {
        opacity: 1;
    }
}
